home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / rdfISerializer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM rdfISerializer.idl
  3.  */
  4.  
  5. #ifndef __gen_rdfISerializer_h__
  6. #define __gen_rdfISerializer_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class rdfIDataSource; /* forward declaration */
  18.  
  19. class nsIOutputStream; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    rdfISerializer */
  23. #define RDFISERIALIZER_IID_STR "f0edfcdd-8bca-4d32-9226-7421001396a4"
  24.  
  25. #define RDFISERIALIZER_IID \
  26.   {0xf0edfcdd, 0x8bca, 0x4d32, \
  27.     { 0x92, 0x26, 0x74, 0x21, 0x00, 0x13, 0x96, 0xa4 }}
  28.  
  29. /**
  30.  * Interface used to serialize RDF.
  31.  *
  32.  * @status PLASMA
  33.  */
  34. class NS_NO_VTABLE rdfISerializer : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(RDFISERIALIZER_IID)
  38.  
  39.   /**
  40.      * Synchronously serialize the given datasource to the outputstream.
  41.      *
  42.      * Implementations are not required to implement any buffering or
  43.      * other stream-based optimizations.
  44.      *
  45.      * @param aDataSource The RDF data source to be serialized.
  46.      * @param aOut The output stream to use.
  47.      */
  48.   /* void serialize (in rdfIDataSource aDataSource, in nsIOutputStream aOut); */
  49.   NS_IMETHOD Serialize(rdfIDataSource *aDataSource, nsIOutputStream *aOut) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_RDFISERIALIZER \
  55.   NS_IMETHOD Serialize(rdfIDataSource *aDataSource, nsIOutputStream *aOut); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_RDFISERIALIZER(_to) \
  59.   NS_IMETHOD Serialize(rdfIDataSource *aDataSource, nsIOutputStream *aOut) { return _to Serialize(aDataSource, aOut); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_RDFISERIALIZER(_to) \
  63.   NS_IMETHOD Serialize(rdfIDataSource *aDataSource, nsIOutputStream *aOut) { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(aDataSource, aOut); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class _MYCLASS_ : public rdfISerializer
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_RDFISERIALIZER
  74.  
  75.   _MYCLASS_();
  76.  
  77. private:
  78.   ~_MYCLASS_();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(_MYCLASS_, rdfISerializer)
  86.  
  87. _MYCLASS_::_MYCLASS_()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. _MYCLASS_::~_MYCLASS_()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* void serialize (in rdfIDataSource aDataSource, in nsIOutputStream aOut); */
  98. NS_IMETHODIMP _MYCLASS_::Serialize(rdfIDataSource *aDataSource, nsIOutputStream *aOut)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_rdfISerializer_h__ */
  108.